package com.itheima.homework;

public class Test1 {
    public static void main(String[] args) {
        int[] arr = {1, 2, 3, 4, 5};    //静态初始化长度为5的整数数组
        for (int i = 0; i < arr.length; i++) {  //遍历数组
            System.out.print(arr[i] + " "); //print不换行,用字符串空格隔开
        }
    }
}